Skip to content

feat: add duplicate note via sidebar context menu#92

Merged
j4rviscmd merged 2 commits intomainfrom
feat/note-duplicate
Mar 28, 2026
Merged

feat: add duplicate note via sidebar context menu#92
j4rviscmd merged 2 commits intomainfrom
feat/note-duplicate

Conversation

@j4rviscmd
Copy link
Copy Markdown
Owner

Summary

  • Add a "Duplicate" option to the note context menu (right-click) in the sidebar
  • Implement a dedicated Rust duplicate_note command that copies the note content, appends " (copy)" to both the title and the H1 heading, and inherits the original note's group
  • The duplicated note is automatically selected and shown in the editor after creation

Test plan

  • Right-click a note in the sidebar and verify "Duplicate" appears in the context menu
  • Click "Duplicate" and verify a new note with title "Original Title (copy)" appears in the same group
  • Verify the H1 heading in the editor also shows the "(copy)" suffix
  • Verify the duplicated note is automatically selected/opened
  • Verify pin state is NOT inherited (duplicated note is unpinned)
  • Verify duplication works for uncategorized notes
  • Verify duplication works for notes inside a group

🤖 Generated with Claude Code

Add a "Duplicate" option to the note context menu that creates a copy
of the selected note.  The Rust-side `duplicate_note` command handles
title suffixing, group inheritance and H1 heading rewrite in a single
IPC round-trip.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@j4rviscmd j4rviscmd added the enhancement New feature or request label Mar 28, 2026
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@j4rviscmd j4rviscmd merged commit 5e629e2 into main Mar 28, 2026
2 checks passed
@j4rviscmd j4rviscmd deleted the feat/note-duplicate branch March 28, 2026 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant